import React from 'react';
import { Spin } from 'antd';

const PageLoader: React.FC = () => {
  return (
    <div style={{
      display: 'flex',
      alignItems: 'center',
      justifyContent: 'center',
      height: '100vh'
    }}>
      {/* 使用嵌套模式避免 antd Spin tip 警告 */}
      <Spin size="large" tip="页面加载中...">
        <div style={{ width: 0, height: 0 }} />
      </Spin>
    </div>
  );
};

export default PageLoader;